<button id="btn-friend-1" class="btn btn-primary" onclick="toggleFriend({$member_information.member_id},0)"{if $is_friend==-1}disabled{/if}>{if $is_friend==0}+ 加好友{elseif $is_friend==1 }解除好友关系{elseif $is_friend==-1 }已发送好友申请{elseif $is_friend==-2}确认好友申请{/if}</button><button id="btn-friend-2" class="btn btn-primary{if $is_friend!=-2} hide{/if}" onclick="toggleFriend({$member_information.member_id},1)">拒绝好友申请</button><a id="btn-leave-message" class="btn" href="{'message'|site_url}?target_id={$member_information.member_id}" {if $is_friend!=1}disabled{/if}>给TA留言</a>